package com.jinly.ryder.database.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinly.ryder.database.service.model.SqlTaskState;
import com.jinly.ryder.database.service.model.SqlType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class SqlTaskItemVO {

    private Long id;

    private Long taskId;

    /**
     * sql 脚步
     */
    private String sqlScript;

    private String tableName;

    private SqlType type;

    private SqlTaskState state;

    private String resultMsg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime created;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updated;
}
